package myjava.inheritance._private_;

public class Root {

   public static void main(String[] args) {

      Dad d = new Dad();
      Son s = new Son();

      // you can't do:
      // System.out.println(d.foo);
      // System.out.println(s.foo);

      // you can do:
      System.out.println(d.getFoo());
      System.out.println(s.getFoo());
   }
}